package route

import (
	"strings"

	"github.com/gin-gonic/gin"
)

type Test struct {
}

func (p Test) InitRoute(g *gin.RouterGroup) {
	group := g.Group("/test")
	group.GET("/qps", p.qps())
}
func (p Test) qps() gin.HandlerFunc {
	m := map[string]any{
		"msg":  "ok",
		"data": strings.Repeat("实际的QPS、RT关系如", 30),
		"code": 200,
	}
	return func(c *gin.Context) {
		c.JSON(200, m)
	}
}
